import request from '@/utils/request'

// 查询城市路费全局配置列表
export function listCityFareGlobalConfig(query) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig/list',
    method: 'get',
    params: query
  })
}

// 查询城市路费全局配置详细
export function getCityFareGlobalConfig(id) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig/' + id,
    method: 'get'
  })
}

// 新增城市路费全局配置
export function addCityFareGlobalConfig(data) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig',
    method: 'post',
    data: data
  })
}

// 修改城市路费全局配置
export function updateCityFareGlobalConfig(data) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig',
    method: 'put',
    data: data
  })
}

// 删除城市路费全局配置
export function delCityFareGlobalConfig(id) {
  return request({
    url: '/cityFareGlobalConfig/cityFareGlobalConfig/' + id,
    method: 'delete'
  })
}
